package cate.common.table.activity.treasure.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class TreasureCallRow extends ERow {

    @NoteField("配置ID")
    public int configId;

    @NoteField("类型")
    public int type;

    @NoteField("抽奖次数")
    public int count;

    @NoteField("免费次数")
    public int freeLimit;

    @NoteField("碎钻召唤")
    public String costDia;

    @NoteField("今日碎钻上限次数")
    public int diaLimit;

    @NoteField("抽奖道具")
    public String cost;

    @NoteField("抽奖额外获得道具")
    public String extraRwd;

    @NoteField("跑马灯")
    public int lampId;

    @NoteField("跑马灯暴击")
    public int lampAddId;

    @NoteField("稀有道具次数上限")
    public int rareLimit;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("ID");
        this.configId = xrw.getInteger("配置ID");
        this.type = xrw.getInteger("类型");
        this.count = xrw.getInteger("抽奖次数");
        this.freeLimit = xrw.getInteger("免费次数",0);
        this.costDia = xrw.getString("碎钻召唤");
        this.diaLimit = xrw.getInteger("今日碎钻上限次数", 0);
        this.cost = xrw.getString("抽奖道具");
        this.extraRwd = xrw.getString("抽奖额外获得道具");
        this.lampId = xrw.getInteger("跑马灯",0);
        this.lampAddId = xrw.getInteger("跑马灯暴击",0);
        this.rareLimit = xrw.getInteger("稀有道具次数上限",0);
    }
}
